<div id="tablecontent">
  <table class="testgrid" id="tableid">
    <thead>
      <tr>
        <th>id</th>
        <th>类别id</th>
        <th>书名</th>
        <th>描述</th>
        <th>下载量</th>
        <th>状态</th>
        <th>创建时间</th>
        <th>更新时间</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
<?php
	foreach($booklet_list as $booklet)
	{
?>
      <tr id="DemoGrid">
	  	<td><?php echo $booklet->id; ?></td>
	  	<td><?php echo $booklet->category_id; ?></td>
	  	<td><?php echo $booklet->name; ?></td>
	  	<td><?php echo $booklet->description; ?></td>
	  	<td><?php echo $booklet->download_count; ?></td>
	  	<td><?php echo $booklet->status; ?></td>
	  	<td><?php echo $booklet->create_time; ?></td>
	  	<td><?php echo $booklet->update_time; ?></td>
		<td>
			<a href="/admin/booklet/delete/<?php echo $booklet->id; ?>" onclick="var bl=confirm('真要删除?'); if(bl){return true;} else {return false;}" class="rates_button">删除</a>
			<a href="/admin/booklet/modify/<?php echo $booklet->id; ?>" class="rates_button">编辑</a>
			<a href="/admin/picture/add/<?php echo $booklet->id; ?>" class="rates_button">添加图片</a>
		</td>
      </tr>
<?php
	}
?>
    </tbody>
  </table>
<a href="/admin/booklet/add" class="rates_button">添加书</a>
</div>
